<?php 

	$arr = array('one' => 1, 'two' => 2, 'three' => 3, 'four' => 4);
	$brr = array('one' => 1, 'two' => 2, 'three' => 3);
	$crr = array("aa", "bb", "cc", "dd", "ee", "ff");

	print_r($arr);
	echo "<br>";

	function myfun($v, $bv)
	{
		echo "$v --- $bv <br>";
		return 1;
	}

	$rarr = array_map("myfun", $arr, $brr);

	print_r($rarr);
	echo "<br>";

	$earr = array_map(null, $arr, $brr, $crr);
	print_r($earr);
	echo "<br>";


 ?>